import request from '@/utils/requestUtil';

export function memberLogin(params) {
  return request({
    method: 'POST',
    url: '/sso/login',
    header: {
      'content-type': 'application/x-www-form-urlencoded;charset=utf-8',
    },
    params: params,
    // data: data,
  });
}
export function memberRegister(data) {
  return request({
    method: 'POST',
    url: '/sso/register',
    header: {
      'content-type': 'application/x-www-form-urlencoded;charset=utf-8',
    },
    data: data,
  });
}

export function memberGetAuthCode(params) {
  return request({
    method: 'GET',
    url: '/sso/getAuthCode',
    params: params,
  });
}
export function memberInfo() {
  return request({
    method: 'GET',
    url: '/sso/info',
  });
}
